<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps JavaScript API Example</title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_false"
            type="text/javascript"></script>
    <script type="text/javascript">
    var map;
	function removeMarker()
							{

                               //var a1='<img src="Hydrangeas.jpg" width=150 height=80/><br/>'+ "This is transform image" + '<input type="button" id="btnPrueba" value="original image" onclick="initialize() "/>';
							    var a1='<img src="Hydrangeas.jpg" width=150 height=80/><br/>'+ "This is transform image" 
							   var a2="aaaaa";
							   map.openInfoWindowHtml(a1);
							   //alert("aaa");
							   
							   
                            }
	
function initialize() {
      if (GBrowserIsCompatible()) {
	  function removeMarker()
							{

                               //var a1='<img src="Hydrangeas.jpg" width=150 height=80/><br/>'+ "This is transform image" + '<input type="button" id="btnPrueba" value="original image" onclick="initialize() "/>';
							    var a1='<img src="Hydrangeas.jpg" width=150 height=80/><br/>'+ "This is transform image" 
							   var a2="aaaaa";
							   map.openInfoWindowHtml(a1);
							   //alert("aaa");
							   
							   
                            }
       var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);

// Creates a marker at the given point
// The five markers show a secret message when clicked
// but that message is not within the marker's instance data

function createMarker(point, number) {
  var marker = new GMarker(point);
  var message = ["This","is","the","secret","message"];
  marker.value = number;
  GEvent.addListener(marker, "click", function() {
    var myHtml ='<input type="button" id="btnPrueba" value="transform_img" onclick="removeMarker()"/>';
    map.openInfoWindowHtml(point, myHtml);
  });
  return marker;
}

// Add 5 markers to the map at random locations
var bounds = map.getBounds();
var southWest = bounds.getSouthWest();
var northEast = bounds.getNorthEast();
var lngSpan = northEast.lng() - southWest.lng();
var latSpan = northEast.lat() - southWest.lat();
for (var i = 0; i < 5; i++) {
  var point = new GLatLng(southWest.lat() + latSpan * Math.random(),
    southWest.lng() + lngSpan * Math.random());
  map.addOverlay(createMarker(point, i + 1));
}
//map.addControl(new GSmallMapControl());
//map.addControl(new GMapTypeControl());
        map.setMapType(G_SATELLITE_MAP);
        map.setUIToDefault();
      }
    }


    </script>
  </head>
  <body onload="initialize()" onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 300px"></div>
  </body>
</html>